from selenium import webdriver


def chrome_options():
    """Chrome Options

    :return:
    """
    options = webdriver.ChromeOptions()
    options.page_load_strategy = "eager"
    options.accept_insecure_certs = True
    options.add_argument('--headless')
    options.add_argument('--window-size=1440,1080')
    options.add_argument('--disable-logging')
    options.add_argument('--log-level=3')
    options.add_experimental_option("excludeSwitches",
                                    ['enable-automation', 'enable-logging'])
    prefs = {
        "credentials_enable_service": False,
        "profile.password_manager_enabled": False,
        'profile.default_content_setting_values': {
            'notifications': 2
        }
    }
    options.add_experimental_option('prefs', prefs)
    return options
